
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Video Sesion</title>
    </head>
    <body><body style="background-color:#FFFFFF ">        
        <div align="center">
        <h2>Video de la sesion</h2><br>
        <object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
            codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" width=500 height=300 align=center standby="Loading Microsoft Windows Media Player components..." id="MMPlayer1"/>
            <param name="filename" value="${model.rutaVideo}">
            <param name="ShowControls" value="1">
            <param name="ShowStatusBar" value="1">
            <param name="Autostart" value="0">
            <param name="Loop" value="0">
        </object>
            <form ACTION="comentarVideo.htm" METHOD="POST">
            <input type="hidden" name="id_sesion" value="${model.id_sesion}"/>
            <input type="hidden" name="id_fisio" value="${model.id_fisio}"/>
            <input type="hidden" name="rutaVideo" value="${model.rutaVideo}"/>
        <br>
            <h3><b>Comentario</b></h3>
            <textarea cols="60" rows="5" name="texto" value=""></textarea><br><br>
            <input type="submit" align="center" value="Comentar">
            <br><br><hr><br>
          <table align="center" width="50%" bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td align="left"><b>Nombre</b></td>
                <td><b>Comentario</b></td>
                <td><b>Fecha</b></td>
                <td><b>Accion</b></td>
            </tr>
            <c:forEach items="${model.comentarios}" var="comentar">
                <tr>
                    <td align="left" width="30%"><c:out value="${comentar.coment.fisioterapeuta.nombre}"/> <c:out value="${comentar.coment.fisioterapeuta.apellido}"/></td>
                    <td align="left"><c:out value="${comentar.coment.texto}"/></td>
                    <td><c:out value="${comentar.coment.fecha}"/></td>
                    <td><a href ="/fisiosoftJDV/comentarVideo.htm?tipo=eliminar&id_sesion=<c:out value="${model.id_sesion}"/>&id_coment=<c:out value="${comentar.coment.idComentariovideo}"/>&id_fisio=<c:out value="${model.id_fisio}"/>"><c:out value="${comentar.eliminar}"/></a></td>
                </tr>
            </c:forEach>
          </table>            
        </form>
        </div>
    </body>
</html>
